<template>

<QuillEditor ref="editor" theme="snow" @update:content="UpdateContent"/>

</template>

<script lang="ts" setup>
import { QuillEditor } from '@vueup/vue-quill'
import '@vueup/vue-quill/dist/vue-quill.snow.css';
// import '@vueup/vue-quill/dist/vue-quill.bubble.css'
import {ref} from "vue"

const emit = defineEmits(['details'])
const editor = ref();
const UpdateContent =()=>{
    // console.log(editor.value.getHTML());
    emit('details',editor.value.getHTML());
} 
</script>

<style></style>